package day05;

public class ArrayDemo4 {
    //数组的遍历
    public static void main(String[] args) {
        int[] arr = new int[10];
        for(int i = 0; i < arr.length; i++){
            arr[i] = (int)(Math.random()*100); //生成随机数
            System.out.println(arr[i]);
        }
    }
}
